var MathUtils = /** @class */ (function () {
    function MathUtils() {
    }
    MathUtils.add = function (x, y) {
        return x + y;
    };
    MathUtils.subtract = function (x, y) {
        return x - y;
    };
    MathUtils.multiply = function (x, y) {
        return x * y;
    };
    MathUtils.divide = function (x, y) {
        if (y === 0) {
            throw new Error("Cannot divide by zero.");
        }
        return x / y;
    };
    MathUtils.pi = 3.14159;
    return MathUtils;
}());
console.log(MathUtils.add(10, 5)); // 输出: 15
console.log(MathUtils.subtract(10, 5)); // 输出: 5
console.log(MathUtils.multiply(10, 5)); // 输出: 50
console.log(MathUtils.divide(10, 5)); // 输出: 2
console.log(MathUtils.pi); // 输出: 3.14159
